package cn.qingyun.gis.modules.enterprise.service.impl;

import cn.qingyun.gis.modules.enterprise.entity.Other;
import cn.qingyun.gis.modules.enterprise.mapper.OtherMapper;
import cn.qingyun.gis.modules.enterprise.service.IOtherService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 其他数据 服务实现类
 * </p>
 *
 * @author skb
 * @since 2024-04-23
 */
@Service
public class OtherServiceImpl extends ServiceImpl<OtherMapper, Other> implements IOtherService {

    @Override
    public List<Other> getOtherList(String code) {
        QueryWrapper<Other> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(Other::getGridCode, code);
        return this.list(queryWrapper);
    }

}
